package com.yanqu.road.server.timer.translations;

import com.yanqu.road.server.manger.sdk.TranslateLanguageMgr;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 * @author ：zfr
 * @date ：2021/4/28 21:25
 */
public class TranslationsRemoveOverTimeDataTask extends GeneralTask {
    private boolean isRun = false;
    @Override
    public void doRun() {
        try {
            if (!isRun) {
                isRun = true;
                TranslateLanguageMgr.removeOverTimeData();
                isRun = false;
            }
        } catch (Exception ex) {
            getLOGGER().error(ex);
        } finally {
            isRun = false;
        }
    }
}
